﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ProducerBO;

namespace Producer
{
    public partial class CustomerSignUp : System.Web.UI.Page
    {
        CUSTOMER CUST = new CUSTOMER();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void BP_SUBMIT_Click(object sender, EventArgs e)
        {
            CUST.C_ID = -99;
            CUST.C_NAME = TC_FNAME.Text + " " + TC_MNAME.Text + " " + TC_LNAME.Text;
            CUST.C_PHONE = Convert.ToInt64(TC_PHONE.Text);
            CUST.C_EMAIL = TC_EMAILID.Text;
            CUST.C_UNAME = TC_UNAME.Text;
            CUST.C_PASS = TC_PASSWORD.Text;
            CUST.ISACTIVE = true;
            CUST.ISDELETED = false;
            CUST.SaveRecord();
            Response.Redirect("~/CustomerWelcome.aspx");
     
        }
    }
}
